package com.chenlei.stockk.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/stock")
public class StockController {
    @RequestMapping("/add")
    public String addStock(){
        return "stock add !";
    }

    @RequestMapping("/get/{id}")
    public String getStock(@PathVariable("id") String id){
        return "stock add !"+id;
    }

}
